// 
// Decompiled by Procyon v0.5.36
// 

package com.orange.boot.encyclopedia.service.impl;

import java.io.Serializable;
import com.orange.boot.utils.R;
import org.springframework.stereotype.Service;
import com.orange.boot.encyclopedia.service.CitrusBaikeService;
import com.orange.boot.encyclopedia.entity.CitrusBaike;
import com.orange.boot.encyclopedia.mapper.CitrusBaikeMapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

@Service
public class CitrusBaikeServiceImpl extends ServiceImpl<CitrusBaikeMapper, CitrusBaike> implements CitrusBaikeService {
    public CitrusBaikeServiceImpl() {
    }

    public R getOrangeBaiKe() {
        CitrusBaike citrusBaike = (CitrusBaike)((CitrusBaikeMapper)this.baseMapper).selectById("1");
        return R.ok().data("citrusBaike", citrusBaike);
    }

    public R UpdateOrangeBaiKe(CitrusBaike citrusBaike) {
        return ((CitrusBaikeMapper)this.baseMapper).updateById(citrusBaike) > 0 ? R.ok().message("修改成功") : R.error().message("修改失败");
    }
}